package cn.edu.nju.oraldefense.dao;

import java.util.List;

import cn.edu.nju.oraldefense.model.Comment;
import cn.edu.nju.oraldefense.model.Paper;
import cn.edu.nju.oraldefense.model.Teacher;

public interface CommentDao {

	public void save(Comment instance);

	public Comment findById(int id);

	public List findByProperty(String propertyName, Object value);

	public List findByPaper(Paper paper);
	
	public List findByTeacherAndMonth(Teacher teacher, String yearmonth,String nextyearmonth);

	public void update(Comment instance);

	public void delete(Comment instance);

}
